#include "register.h"


const char __def_register_token = '%';


uint8_t
RegisterObject::operator [ ] (uint8_t idx)
{
	if (idx < 0 || idx > 7) return 0;

	uint8_t	msk = (1<<idx);
	if (*reg & msk)
		return 1;

	return 0;
}
